home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / intuition / sizewindow.c < prev   
C/C++ Source or Header  |  1996-09-12  |  2KB  |  76 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: sizewindow.c,v 1.2 1996/08/29 13:57:38 digulla Exp $
  4.     $Log: sizewindow.c,v $
  5.     Revision 1.2  1996/08/29 13:57:38  digulla
  6.     Commented
  7.     Moved common code from driver to Intuition
  8.  
  9.     Revision 1.1  1996/08/23 17:28:17  digulla
  10.     Several new functions; some still empty.
  11.  
  12.  
  13.     Desc:
  14.     Lang: english
  15. */
  16. #include "intuition_intern.h"
  17.  
  18. extern void intui_SizeWindow (struct Window * win, long dx, long dy);
  19.  
  20. /*****************************************************************************
  21.  
  22.     NAME */
  23.     #include <clib/intuition_protos.h>
  24.  
  25.     __AROS_LH3(void, SizeWindow,
  26.  
  27. /*  SYNOPSIS */
  28.     __AROS_LHA(struct Window *, window, A0),
  29.     __AROS_LHA(long           , dx, D0),
  30.     __AROS_LHA(long           , dy, D1),
  31.  
  32. /*  LOCATION */
  33.     struct IntuitionBase *, IntuitionBase, 48, Intuition)
  34.  
  35. /*  FUNCTION
  36.     Modify the size of a window by the specified offsets.
  37.  
  38.     INPUTS
  39.     window - The window to resize.
  40.     dx - Add this to the width.
  41.     dy - Add this to the height.
  42.  
  43.     RESULT
  44.     None.
  45.  
  46.     NOTES
  47.     The resize of the window may be delayed. If you depend on the
  48.     information that is has changed size, wait for IDCMP_NEWSIZE.
  49.  
  50.     EXAMPLE
  51.  
  52.     BUGS
  53.  
  54.     SEE ALSO
  55.  
  56.     INTERNALS
  57.  
  58.     HISTORY
  59.     29-10-95    digulla automatically created from
  60.                 intuition_lib.fd and clib/intuition_protos.h
  61.  
  62. *****************************************************************************/
  63. {
  64.     __AROS_FUNC_INIT
  65.     __AROS_BASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
  66.  
  67.     /* Call the driver before changing the window */
  68.     intui_SizeWindow (window, dx, dy);
  69.  
  70.     /* Adjust the window's attributes */
  71.     window->Width += dx;
  72.     window->Height += dy;
  73.  
  74.     __AROS_FUNC_EXIT
  75. } /* SizeWindow */
  76.